import request from '@/utils/request'

// 获取工单列表
export  function list(data){
  return request({
    url: '/workOrder/list',
    method: 'post',
    data:data
  })
}



// 创建订单
export  function create(data){
  return request({
    url: '/workOrder/create',
    method: 'post',
    data:data
  })
}



// 查询工单详情
export  function detail(data){
  return request({
    url: '/workOrder/detail',
    method: 'get',
    params:data
  })
}



// 修改工单状态完结
export  function updateStatus(data){
  return request({
    url: '/workOrder/updateStatus',
    method: 'post',
    data:data
  })
}




